﻿using System.Web.Configuration;

/// <summary>
/// Summary description for GlobalDefaultValues
/// </summary>
public class GlobalDefaultValues
{
    public static int MaxJsonLength = (WebConfigurationManager.AppSettings["MaxJsonLength"] != null) ? TrynParse.parseInt(WebConfigurationManager.AppSettings["MaxJsonLength"]) : 2147483644;
    public static string FromEmailID = (WebConfigurationManager.AppSettings["FromEmailID"] != null) ? (WebConfigurationManager.AppSettings["FromEmailID"]) : "amit.tank0001@gmail.com";
    /// <summary>
    /// Default recepient name
    /// </summary>
    public static string InfoEmail = (WebConfigurationManager.AppSettings["InfoEmail"] != null) ? (WebConfigurationManager.AppSettings["InfoEmail"]) : "amit.tank001@gmail.com";
    /// <summary>
    /// Default recepient email address
    /// </summary>
    public static string InfoEmailName = (WebConfigurationManager.AppSettings["InfoEmailName"] != null) ? (WebConfigurationManager.AppSettings["InfoEmailName"]) : "Padmakala";
    /// <summary>
    /// Default sender email address
    /// </summary>
    public static string NoreplyEmail = (WebConfigurationManager.AppSettings["NoreplyEmail"] != null) ? (WebConfigurationManager.AppSettings["NoreplyEmail"]) : "amit.tank001@gmail.com";
    /// <summary>
    /// Default sender name
    /// </summary>
    public static string NoReplyName = (WebConfigurationManager.AppSettings["NoReplyName"] != null) ? (WebConfigurationManager.AppSettings["NoReplyName"]) : "no reply";

    /// <summary>
    /// Project support / developer group name
    /// </summary>
    public static string SupportTeam = (WebConfigurationManager.AppSettings["SupportTeam"] != null) ? (WebConfigurationManager.AppSettings["SupportTeam"]) : "No";

    /// <summary>
    /// Project support / developer group email address
    /// </summary>
    public static string SupportTeamEmail = (WebConfigurationManager.AppSettings["SupportTeamEmail"] != null) ? (WebConfigurationManager.AppSettings["SupportTeamEmail"]) : "amit.tank0001@gmail.com";

    /// <summary>
    /// Return email SSL flag
    /// </summary>
    public static bool EnableSSL = (WebConfigurationManager.AppSettings["EnableSSL"] != null) ? (WebConfigurationManager.AppSettings["SupportTeamEmail"] == ""? false : true) : false;
    
    /// <summary>
    /// Return folder path for uploading files
    /// </summary>
    public static string UploadFilePath = (WebConfigurationManager.AppSettings["UploadFilePath"] != null) ? (WebConfigurationManager.AppSettings["UploadFilePath"]) : "Documents";

    /// <summary>
    /// Return Temp folder path to upload files
    /// </summary>
    public static string TemporaryUploadFilePath = (WebConfigurationManager.AppSettings["TemporaryUploadFilePath"] != null) ? (WebConfigurationManager.AppSettings["TemporaryUploadFilePath"]) : "TempFiles";


    public static string DefaultImage = "images/default_male_img.png";
    public static string DefaultFemaleImage = "images/default_female_img.png";
    public static string DefaultMaleImage = "images/default_male_img.png";

    public static string DomainName = (WebConfigurationManager.AppSettings["DomainName"] != null) ? (WebConfigurationManager.AppSettings["DomainName"]) : "";

    /// <summary>
    /// Number of allowed failed login attempts, default is 5
    /// </summary>
    public static int NumberOfFailedLoginAttemmpts = TrynParse.parseInt(WebConfigurationManager.AppSettings["NumberOfFailedLoginAttemmpts"]);

    
    /// <summary>
    /// Number of Hours account will be locked, default is 1
    /// </summary>
    public static int NumberOfHoursAccountLocked = TrynParse.parseInt(WebConfigurationManager.AppSettings["NumberOfHoursAccountLocked"]);


    public static string RightAvailabilityMessage = "This feature is unavailable.";


    public static string DHTMLXExportToExcelFilePath = (WebConfigurationManager.AppSettings["DHTMLXExportToExcelFilePath"] != null) ? (WebConfigurationManager.AppSettings["DHTMLXExportToExcelFilePath"]) : "ExportToExcel.ashx";

    public static string SaveMessage = "XXX details saved successfully.";
    public static string SaveErrorMessage = "XXX details could not be saved.";
    public static string SubmitMessage = "XXX details submitted successfully.";
    public static string SubmitErrorMessage = "XXX details could not be submitted.";
    public static string UpdateMessage = "XXX details updated successfully.";
    public static string UpdateErrorMessage = "XXX details could not be updated.";
    public static string ExistMessage = "XXX already exists.";
    public static string CancelMessage = "XXX canceled successfully.";
    public static string CancelErrorMessage = "XXX could not be canceled.";
    public static string ActivationMessage = "XXX status activated successfully.";
    public static string ActivationErrorMessage = "XXX status could not be activated.";
    public static string InactivationMessage = "XXX status inactivated successfully.";
    public static string InactivationErrorMessage = "XXX status could not be inactivated.";
    public static string Profile_Vilidationmessage = "Kindly make sure all data is entered correctly.";
    public static string DeleteMessage = "XXX deleted successfully. ";
    public static string ErrorDeleteMessage = "XXX could not be delete. ";

}
